package com.yidu.hbats.service.MentalTraining;


import com.github.pagehelper.PageHelper;
import com.yidu.hbats.dao.AtsSchemeExpertMapper;
import com.yidu.hbats.model.AtsSchemeExpert;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: t272
 * @description 心理专家咨询接口实现类
 * @author: 周佳佳
 * @create: 2019-11-12 09:19
 **/
@Service
public class AtsSchemeExpertMentalServiceimpl implements AtsSchemeExpertMentalService{
    @Resource
    AtsSchemeExpertMapper atsSchemeExpertMapper;

    @Override
    public int insertSelective(AtsSchemeExpert record) {
        return atsSchemeExpertMapper.insertSelective(record);
    }

    @Override
    public int selectByOne(Integer schemeId) {
        return atsSchemeExpertMapper.selectByOne(schemeId);
    }

    @Override
    public int updateByPrimaryKeySelectiveone(AtsSchemeExpert record) {
        return atsSchemeExpertMapper.updateByPrimaryKeySelectiveone(record);
    }

    @Override
    public int updateByPrimaryKeySelectiveThree(AtsSchemeExpert record) {
        return atsSchemeExpertMapper.updateByPrimaryKeySelectiveThree(record);
    }

    @Override
    public int updateByPrimaryKeySelectiveFour(AtsSchemeExpert record) {
        return atsSchemeExpertMapper.updateByPrimaryKeySelectiveFour(record);
    }

    @Override
    public List<AtsSchemeExpert> findAllSIx(AtsSchemeExpert atsSchemeExpert,Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        return atsSchemeExpertMapper.findAllSIx(atsSchemeExpert);
    }

    @Override
    public int countSIx(AtsSchemeExpert atsSchemeExpert) {
        return atsSchemeExpertMapper.countSIx(atsSchemeExpert);
    }

    @Override
    public List<AtsSchemeExpert> selectByPrimaryKeyThree(String expertId) {
        return atsSchemeExpertMapper.selectByPrimaryKeyThree(expertId);
    }

    @Override
    public AtsSchemeExpert selectByPrimaryKeyFour(int seId) {
        return atsSchemeExpertMapper.selectByPrimaryKeyFour(seId);
    }

    @Override
    public int updateByPrimaryKeySelective(AtsSchemeExpert record) {
        return atsSchemeExpertMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public AtsSchemeExpert selectByPrimaryKeyFive(int schemeId) {
        return atsSchemeExpertMapper.selectByPrimaryKeyFive(schemeId);
    }
}